<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>

<!-- $Id: index.jsp 17 2011-10-21 13:09:34Z telbie $ -->

<jsp:useBean id="suisseid" class= "com.clavid.example.oauth.suisseid.ClavidOAuthSuisseIDBean" scope="session"/>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>Clavid SuisseID OAUTH Java Example</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>

  <body>
    <h1>Clavid SuisseID OAUTH Java Example</h1>
      SuisseID Number: <jsp:getProperty name = "suisseid" property = "number"/><br/>
      SuisseID Name: <jsp:getProperty name = "suisseid" property = "name"/><br/>
      SuisseID E-Mail: <jsp:getProperty name = "suisseid" property = "email"/><br/>
      <form action="index.jsp">
        <input type="hidden" name="suisseid" value="logout" />
        <input type="Submit" value="Login Again" />
      </form>
  </body>
</html>
